package com.googlecode.transmutant.spring;

import org.springframework.beans.factory.FactoryBean;

public class StepMethodFactoryBean implements FactoryBean<StepMethodWrapper> {

	def name
	def params
	def capture
	
	@Override
	public StepMethodWrapper getObject() throws Exception {
		def wrapper = new StepMethodWrapper()
		wrapper.name = name
		wrapper.params = params
		wrapper.capture = capture
		return wrapper;
	}

	@Override
	public Class<StepMethodWrapper> getObjectType() {
		return StepMethodWrapper.class;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}

}
